import { getPDFFile } from "@/api/pdf"
import { message } from "antd"
import { AxiosResponse } from "axios"
import { Dispatch } from "redux"
import { FILETYPE, GETLIST } from "../constant"

export const getPDFFileAct =(SearchData:SearchData):any =>{

 return async (dispatch:Dispatch)=>{
    const res = await getPDFFile(SearchData)
    if(res.code == 1){
        dispatch({type:FILETYPE,data:res.data})
    }else{
        message.error(res.msg||"请求失败")
    }
 } 

}